import request from "@/utils/request";

//用户登录
export const CPLogin = (params) => {
    return request("/smw/UAC/CPLogin", {
        method: "POST",
        data: params || "",
    });
};

//获取用户信息
export const GetUserInfo = () => {
    return request("/ups/basicCheck/userInfo");
};

//文件上传
export const fileUploadOne = () => {
    return request("/ups/file/uploadOne");
};

export const getVideoStream = (params) => {
    return request("/bphcdw/zkjqkstatuslog/getVideoStream", {
        params: params || "",
    })
}

//获取配置项
export const GetSettingByCategoryNo = (params) => {
    return request("/smw/ConfigOptions/GetSettingByCategoryNo", {
        params: params || "",
    });
};

//获取配置项
export const getsafeManageList = (data) => {
    return request("/api/ddh4ly/sdZzstinfowsecurityB/getsafeManageList", {
        method: "POST",
        data
    });
};
